package dao.inventory;

import dao.BaseDaoHibernate;
import model.inventory.ItemSupplier;
import org.springframework.stereotype.Repository;


@Repository
public class ItemSupplierDao extends BaseDaoHibernate<ItemSupplier> {
    
//    public ItemSupplier getById(ItemSupplierId id) {
//        return (ItemSupplier) sessionFactory.getCurrentSession().get(ItemSupplier.class, id);
//    }
//    
//    public ItemSupplier getByKodeSPL(int itemId, String kodeSpl) {
//        return (ItemSupplier) sessionFactory.getCurrentSession().createQuery(
//            "from " + domainClass.getName() + 
//            " where id.itemId = "+itemId+
//            " and lower(supplier.kode) = "+StringUtils.fmtSQLString(kodeSpl))
//            .uniqueResult();
//    }
    
}
